.class public Lcom/instagram/android/fragment/fo;
.super Lcom/instagram/android/fragment/fg;
.source "SearchTagsFragment.java"


# instance fields
.field private c:Lcom/instagram/android/d/e/q;

.field private d:Lcom/instagram/android/a/b;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 21
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fo;)Lcom/instagram/android/a/b;
    .locals 1
    .parameter

    .prologue
    .line 21
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->d:Lcom/instagram/android/a/b;

    return-object v0
.end method

.method private af()V
    .locals 2

    .prologue
    .line 58
    iget-boolean v0, p0, Lcom/instagram/android/fragment/fo;->a:Z

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fo;->v()Landroid/view/View;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/widget/s;->a(ZLandroid/view/View;)V

    .line 59
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/fo;)V
    .locals 0
    .parameter

    .prologue
    .line 21
    invoke-direct {p0}, Lcom/instagram/android/fragment/fo;->af()V

    return-void
.end method


# virtual methods
.method public X()Lcom/instagram/android/fragment/fm;
    .locals 1

    .prologue
    .line 63
    sget-object v0, Lcom/instagram/android/fragment/fm;->a:Lcom/instagram/android/fragment/fm;

    return-object v0
.end method

.method protected Y()Landroid/widget/BaseAdapter;
    .locals 2

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->d:Lcom/instagram/android/a/b;

    if-nez v0, :cond_0

    .line 69
    new-instance v0, Lcom/instagram/android/a/b;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fo;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/a/b;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/fo;->d:Lcom/instagram/android/a/b;

    .line 72
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fo;->aa()Landroid/widget/Filter;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/fo;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v1}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->getSearchString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    .line 74
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->d:Lcom/instagram/android/a/b;

    return-object v0
.end method

.method protected Z()I
    .locals 1

    .prologue
    .line 101
    sget v0, Lcom/facebook/ba;->search_for_a_tag:I

    return v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 5
    .parameter

    .prologue
    .line 28
    invoke-super {p0, p1}, Lcom/instagram/android/fragment/fg;->a(Landroid/os/Bundle;)V

    .line 30
    new-instance v0, Lcom/instagram/android/d/e/q;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fo;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fo;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    const/4 v3, 0x0

    new-instance v4, Lcom/instagram/android/fragment/fp;

    invoke-direct {v4, p0}, Lcom/instagram/android/fragment/fp;-><init>(Lcom/instagram/android/fragment/fo;)V

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/instagram/android/d/e/q;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/fo;->c:Lcom/instagram/android/d/e/q;

    .line 55
    return-void
.end method

.method protected a(Landroid/widget/AdapterView;I)V
    .locals 4
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;I)V"
        }
    .end annotation

    .prologue
    .line 89
    invoke-virtual {p1, p2}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/h;

    .line 92
    iget-object v1, p0, Lcom/instagram/android/fragment/fo;->c:Lcom/instagram/android/d/e/q;

    invoke-virtual {v1}, Lcom/instagram/android/d/e/q;->h()Lcom/instagram/android/util/ah;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/android/model/h;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/android/util/ah;->b(Ljava/lang/String;)V

    .line 95
    invoke-virtual {v0}, Lcom/instagram/android/model/h;->a()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/android/q/a;->a(Ljava/lang/String;)V

    .line 96
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fo;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/android/model/h;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fo;->o()Landroid/support/v4/app/Fragment;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v2

    const/4 v3, 0x0

    invoke-static {v1, v0, v2, v3}, Lcom/instagram/android/fragment/dh;->a(Landroid/content/Context;Ljava/lang/String;Landroid/support/v4/app/r;Ljava/lang/String;)V

    .line 98
    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 79
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->c:Lcom/instagram/android/d/e/q;

    invoke-virtual {v0, p1}, Lcom/instagram/android/d/e/q;->a(Ljava/lang/String;)V

    .line 80
    return-void
.end method

.method protected aa()Landroid/widget/Filter;
    .locals 1

    .prologue
    .line 84
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->d:Lcom/instagram/android/a/b;

    invoke-virtual {v0}, Lcom/instagram/android/a/b;->getFilter()Landroid/widget/Filter;

    move-result-object v0

    return-object v0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 116
    const-string v0, "search_tags"

    return-object v0
.end method

.method public y()V
    .locals 1

    .prologue
    .line 106
    invoke-super {p0}, Lcom/instagram/android/fragment/fg;->y()V

    .line 107
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->c:Lcom/instagram/android/d/e/q;

    if-eqz v0, :cond_0

    .line 108
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->c:Lcom/instagram/android/d/e/q;

    invoke-virtual {v0}, Lcom/instagram/android/d/e/q;->h()Lcom/instagram/android/util/ah;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/util/ah;->g()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 109
    iget-object v0, p0, Lcom/instagram/android/fragment/fo;->c:Lcom/instagram/android/d/e/q;

    invoke-virtual {v0}, Lcom/instagram/android/d/e/q;->h()Lcom/instagram/android/util/ah;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/util/ah;->f()V

    .line 112
    :cond_0
    return-void
.end method
